<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>按钮</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
	<div class="container">
		<!-- 为 <a>、<button> 或 <input> 元素添加按钮类（button class）即可使用 Bootstrap 提供的样式。  -->
		<a class="btn btn-default" href="#" role="button">Link</a>
		<button class="btn btn-default" type="submit">Button</button>
		<input class="btn btn-default" type="button" value="Input"> <input
			class="btn btn-default" type="submit" value="Submit">
		<hr>
		<!-- Standard button -->
		<button type="button" class="btn btn-default">（默认样式）Default</button>

		<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
		<button type="button" class="btn btn-primary">（首选项）Primary</button>

		<!-- Indicates a successful or positive action -->
		<button type="button" class="btn btn-success">（成功）Success</button>

		<!-- Contextual button for informational alert messages -->
		<button type="button" class="btn btn-info">（一般信息）Info</button>

		<!-- Indicates caution should be taken with this action -->
		<button type="button" class="btn btn-warning">（警告）Warning</button>

		<!-- Indicates a dangerous or potentially negative action -->
		<button type="button" class="btn btn-danger">（危险）Danger</button>

		<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
		<button type="button" class="btn btn-link">（链接）Link</button>
		<hr>
		<!-- 需要让按钮具有不同尺寸吗？使用 .btn-lg、.btn-sm 或 .btn-xs 就可以获得不同尺寸的按钮。  -->
		<p>
			<button type="button" class="btn btn-primary btn-lg">（大按钮）Large
				button</button>
			<button type="button" class="btn btn-default btn-lg">（大按钮）Large
				button</button>
		</p>
		<p>
			<button type="button" class="btn btn-primary">（默认尺寸）Default
				button</button>
			<button type="button" class="btn btn-default">（默认尺寸）Default
				button</button>
		</p>
		<p>
			<button type="button" class="btn btn-primary btn-sm">（小按钮）Small
				button</button>
			<button type="button" class="btn btn-default btn-sm">（小按钮）Small
				button</button>
		</p>
		<p>
			<button type="button" class="btn btn-primary btn-xs">（超小尺寸）Extra
				small button</button>
			<button type="button" class="btn btn-default btn-xs">（超小尺寸）Extra
				small button</button>
		</p>
		<hr>
		<!-- 通过给按钮添加 .btn-block 类可以将其拉伸至父元素100%的宽度，而且按钮也变为了块级（block）元素。  -->
		<button type="button" class="btn btn-primary btn-lg btn-block">（块级元素）Block
			level button</button>
		<button type="button" class="btn btn-default btn-lg btn-block">（块级元素）Block
			level button</button>
		<hr>
		<!-- 由于 :active 是伪状态，因此无需额外添加，但是在需要让其表现出同样外观的时候可以添加 .active 类。  -->
		<button type="button" class="btn btn-primary btn-lg active">Primary
			button</button>
		<button type="button" class="btn btn-default btn-lg active">Button</button>
		<hr>
		<!-- 可以为基于 <a> 元素创建的按钮添加 .active 类。  -->
		<a href="#" class="btn btn-primary btn-lg active" role="button">Primary
			link</a> <a href="#" class="btn btn-default btn-lg active" role="button">Link</a>
		<hr>
		<!-- 为 <button> 元素添加 disabled 属性，使其表现出禁用状态。  -->
		<button type="button" class="btn btn-lg btn-primary"
			disabled="disabled">Primary button</button>
		<button type="button" class="btn btn-default btn-lg"
			disabled="disabled">Button</button>
		<hr>
		<!-- 为基于 <a> 元素创建的按钮添加 .disabled 类。  -->
		<a href="#" class="btn btn-primary btn-lg disabled" role="button">Primary
			link</a> <a href="#" class="btn btn-default btn-lg disabled"
			role="button">Link</a>
	</div>
	<script src="bootstrap/js/jquery-2.1.4.min.js"></script>
	<script src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>